package com.lori.netshop.util;

import java.util.Random;

public class IDUtil {
	private IDUtil(){}
	public static long getID(){
		//获得当前时间毫秒数
		long time = System.currentTimeMillis();
		//获得000-999的随机数
		Random random = new Random();
		long ran = random.nextInt(999);
		String format = String.format("%02d", ran);
		Long ID = Long.parseLong(time+""+format);
		return ID;
	}
}
